package com.ynkbny.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.ynkbny.domain.Formula;
import com.ynkbny.mapper.FormulaMapper;
import com.ynkbny.service.FormulaService;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

/**
* @author YY
* @description 针对表【formula(公式表)】的数据库操作Service实现
* @createDate 2023-08-01 21:06:03
*/
@Slf4j
@Service
public class FormulaServiceImpl extends ServiceImpl<FormulaMapper, Formula>
    implements FormulaService{

    @Resource
    private FormulaMapper formulaMapper;

    /**
     * 查询公式列表
     *
     * @Author YY
     * @param enterpriseCode 企业统一信用代码
     * @return List<Formula>
     */
    @Override
    public List<Formula> selectFormulaList(String enterpriseCode) {
        log.info("入参：{}",enterpriseCode);
        List<Formula> list = formulaMapper.list(enterpriseCode);
        log.info("方法返回值：{}",list);
        return list;
    }
}




